package com.chp.demo5.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import org.apache.ibatis.annotations.Mapper;

import java.io.Serializable;

/**
 * 账套库信息(RzAcctDatabaseInfo)表实体类
 *
 * @author makejava
 * @since 2023-07-13 08:53:07
 */
@SuppressWarnings("serial")
@Mapper
public class RzAcctDatabaseInfo extends Model<RzAcctDatabaseInfo> {
    @TableId(type= IdType.AUTO)
    private Long id;
    //库名
    private String databaseName;
    
    private String domain;
    //账套ID
    private Long acctId;
    //数据库url
    private String url;
    //用户名
    @TableField("username")
    private String username;
    //密码
    private String password;
    //说明
    private String remark;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDatabaseName() {
        return databaseName;
    }

    public void setDatabaseName(String databaseName) {
        this.databaseName = databaseName;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    public Long getAcctId() {
        return acctId;
    }

    public void setAcctId(Long acctId) {
        this.acctId = acctId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    }

